package fr.jgraph.model.edge;

public class LongWeightedEdge extends EdgeDecorator {
	private static final long DEFAULT_WEIGHT = 1;

	private long weight;

	protected LongWeightedEdge(Edge e) {
		this(e,DEFAULT_WEIGHT);
	}
	
	protected LongWeightedEdge(Edge e, long w) {
		super(e);
		setWeight(w);
	}

	public long getWeight() {
		return weight;
	}

	public void setWeight(long w) {
		weight = w;
	}
}
